<div class="clear_both"></div>
<div class="main_container">
    
    <div class="page-control-buttons" style="padding: 2px 0 10px 0;"><a href="<?php echo site_url('myclients/manage/addclient') ?>">Add New Client</a></div>
    
    <table id="client_list" class="display">
        <thead>
            <tr>
                <th>Client Name</th>
                <th>Total Members</th>
                <th>Status</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($clients as $client) : ?>
            <tr>
                <td><?php echo $client->name ?></td>
                <td style="width: 150px;"><?php echo $client->total_users ?></td>
                <td style="width: 90px;"><?php echo strtoupper($client->status) ?></td>
                <td style="width: 100px;"><a href="<?php echo site_url('myclients/manage/editclient/'.$client->id) ?>"><img src="/images/common/edit_icon.png" border="0"></a></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>

<script type="text/javascript">
$(document).ready(function() {
    $('#client_list').dataTable({
        "sPaginationType": "full_numbers",
        "iDisplayLength":25
    });
} );
</script>